-- GENERATED SPELL FOR [Ferocious Rhino] --


function spell0_26686(pUnit, Event) --@Gore,n/a--
pUnit:FullCastSpellOnTarget(48130,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26686', 6000, 1)
end

function spell1_26686(pUnit, Event) --@Gore,n/a--
pUnit:FullCastSpellOnTarget(59264,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26686', 6000, 1)
end

function spell2_26686(pUnit, Event) --@Grievous Wound,n/a--
pUnit:FullCastSpellOnTarget(48105,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26686', 15000, 1)
end

function spell3_26686(pUnit, Event) --@Grievous Wound,n/a--
pUnit:FullCastSpellOnTarget(59263,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26686', 15000, 1)
end

function spell4_26686(pUnit, Event) --@Stomp,n/a--
pUnit:FullCastSpellOnTarget(48131,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26686', 2260, 1)
end

function Sorts_26686(pUnit, Event)
local choix_sorts_26686 = math.random(0, 4)
if choix_sorts_26686 == 0 then
pUnit:RegisterEvent('spell0_26686', 1, 1)
end
if choix_sorts_26686 == 1 then
pUnit:RegisterEvent('spell1_26686', 1, 1)
end
if choix_sorts_26686 == 2 then
pUnit:RegisterEvent('spell2_26686', 1, 1)
end
if choix_sorts_26686 == 3 then
pUnit:RegisterEvent('spell3_26686', 1, 1)
end
if choix_sorts_26686 == 4 then
pUnit:RegisterEvent('spell4_26686', 1, 1)
end
end

function mob26686_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26686', math.random(1500, 3000), 1)
end

function mob26686_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26686_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26686_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26686, 1, 'mob26686_Action')
RegisterUnitEvent(26686, 2, 'mob26686_Leave')
RegisterUnitEvent(26686, 3, 'mob26686_Kill')
RegisterUnitEvent(26686, 4, 'mob26686_Die')
